body {
	background: url("https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExaG96OWh2YWcwZm9xOTB6b2R4b3Jxc2RmZ3NqemNudW1vdm5iaWlwOSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/lqxxKmzFXFDyw/giphy.gif") no-repeat;
	background-position: center;
    background-size: cover;
	width: 100%;
    min-height: 100vh;
	display: flex;
    justify-content: center;
    align-items: center;
}

ul {
	position: absolute;
	top: 0;
	left: 0;
	margin-left: 0.4%;
	margin-top: 0.4%;
}

td, th {
	padding: 14px 16px;
}

fieldset {
	display: inline-block;
	border-radius: 15px;
	margin-top: 20%;
	background: url("https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExd2FpM2d4ZDltaG5oeGplemNzYTlkZ290dmVncDVoZWg2NXNwOGR6ZSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/XFWibkulm5yXoeb6Cc/giphy.gif") no-repeat;
	background-position: 75% 75%;
	background-size: 45%;
	backdrop-filter: blur(10px);
	overflow: hidden;
	border-style: solid;
	border-width: 1px;
	border-radius: 15px;
    box-shadow: 0px 0px 10px black,
                0px 0px 10px black inset;
	width: auto;
    font-family: 'Poppins', sans-serif;
    font-style: italic; /* rende il testo in corsivo */
	font-weight: bold;
}

fieldset::before {
	display: inline-block;
	content: url("misure.png");
	cursor: url("7.png"), auto; /* cambia il cursore quando passi sopra l'immagine */
	transition: cursor 0.2s ease, all 0.3s ease; /* opzionale, per una transizione più fluida */
}

fieldset:hover::before {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

h1 {
	top: 0;
	left: 0;
	margin-left: 33.5%;
	margin-top: 5%;
	position: absolute;
}

h1, h2 {
    font-family: 'Poppins', sans-serif;
	font-weight: bold;
	text-shadow: 1px 1px yellow;	
}

input[type="number"] {
	margin-left: 10px;
	width: 30%;
	text-align: center;
	text-shadow: 2px 2px white;
	color: black;
	border: none;
	outline: none;
	font-size: 1em;
	border-bottom: 1px solid black;
	background: transparent;
}

input[type="button"] {
	background: linear-gradient(135deg, white, black); /* sfondo con gradiente */
	color: white;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-family: 'Poppins', sans-serif;
	font-style: italic; /* rende il testo in corsivo */
	font-size: 16px;
	font-weight: bold;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

input[type="button"]:hover {
	background: linear-gradient(135deg, black, white); /* inversione del gradiente per effetto hover */
	color: white;
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 0 10px blue;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
	cursor: url("7.png"), auto;
	transition: cursor 0.2s ease;
}

input[type="number"]:hover {
	cursor: url("7.png"), auto;
	transition: cursor 0.2s ease;
}

input[type="radio"] {
  display: none;
}

/* Stile per le label, che includono lo span personalizzato */
label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 17px;
}

label:hover {
	cursor: url("7.png"), auto;
	transition: cursor 0.2s ease;
}

/* Contenitore personalizzato del radiobutton */
.custom-radio {
  width: 15px;
  height: 15px;
  border: 2px solid black;
  border-radius: 50%;
  position: relative;
  margin-right: 8px;
  transition: all 0.2s ease;
  display: inline-block;
}

/* Punto interno quando selezionato */
.custom-radio::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #009dfc;
  position: absolute;
  top: 50%;
  left: 49%;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.2s ease;
}

/* Quando il radio è checked, mostra il punto interno */
input[type="radio"]:checked + .custom-radio::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Cambia il bordo del radio quando selezionato */
input[type="radio"]:checked + .custom-radio {
  border-color: black;
}